package com.yue.se.event.basic_event;

import java.util.EventListener;

/**
 * 功能描述: TODO <br/>
 * 创建时间: 2016/7/29<br/>
 *
 * @author QiuYang
 */
public class YueEventListener implements EventListener {

    // 事件监听回调方法
    public void fireYueEvent(YueEvent event){
        YueEventSourceObject eventSourceObject = (YueEventSourceObject) event.getSource();
        System.out.println("My name has been changed");
        System.out.println("I got a new name, named \"" + eventSourceObject.getName() + "\"");
    }
}
